package com.dq.repository.org;


import com.dq.domain.org.Org;
import com.dq.domain.position.OrgPosition;
import com.dq.domain.org.centre.OrgDeptPositionCentre;
import com.dq.domain.sys.section.SysSection;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author CF
 * 岗位门店关联
 */
public interface OrgDeptPositionRepository extends JpaRepository<OrgDeptPositionCentre, Long> {

    /**
     * 根据门店
     * @param deleted
     * @return
     */
    List<OrgDeptPositionCentre> findByDeletedAndOrgOrderByIdDesc(Boolean deleted, SysSection section);

    List<OrgDeptPositionCentre> findByOrgAndOrgPositionAndDeletedFalse(Org org, OrgPosition orgPosition);

}
